<?php
/**
 * Created by PhpStorm.
 * User: songs
 * Date: 2020/4/4
 * Time: 20:17
 */

namespace App\Models;


use App\admin\Service\OA;
use App\Models\User\UserGongsiModel;
use App\Models\User\UserModel;
use App\Repositories\Admin\CompanyRepository;

class UserQuick
{
    /**
     * 撤销公司信息的审核状态
     */
    public static function removeCompanyQualified($uid)
    {
       // var_dump($uid);exit;
         UserModel::where([
            'id' => $uid
        ])->update([
            'is_company' => 0
        ]);
        OA::$user->clearCacheModel($uid);
    }
    public static function removeFactoryQualified($uid){
         UserModel::where([
                'id' => $uid
            ])->update([
                'is_factory' => 0
            ]);
        OA::$user->clearCacheModel($uid);
    }

    public static function removeYingpinQualified($uid){
        UserModel::where([
            'id' => $uid
        ])->update([
            'is_yingpin' => 0
        ]);
        OA::$user->clearCacheModel($uid);
    }

}